home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-05 | 920 b | 38 lines | [TEXT/KAHL] |
- //____________________________________________________________
- // AppleMenu.c
- //
- // Copyright © Dan Parks Sydow, 1995
- // From the book:
- // "Graphics and Sound Programming Techniques for the Mac",
- // M&T Books, 1995
-
-
- //____________________________________________________________
-
- #include "Defines.h"
- #include "DataTypes.h"
- #include "Globals.h"
- #include "AppleMenu.h"
-
-
- //____________________________________________________________
-
- void HandleAppleMenuAboutItem( void )
- {
- SysBeep( 1 );
- }
-
-
- //____________________________________________________________
-
- void HandleAppleMenuDefaultItem( short theMenuItem )
- {
- Str255 theAppleMenuItemName;
- short theAppleMenuItemNumber;
- MenuHandle theAppleMenu;
-
- theAppleMenu = GetMHandle( mApple );
- GetItem( theAppleMenu, theMenuItem, theAppleMenuItemName );
- theAppleMenuItemNumber = OpenDeskAcc( theAppleMenuItemName );
- }
-